<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/1/6
  Time: 16:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加商品</title>
    <%--导入boostrap的css/jquery的js/boostrap的js--%>
    <style>
        /* 控制大的div */
        #mainDiv{

           /* border: 1px solid black;
            !* 整个div设置宽度和高度*!
            width: 420px;
            height:260px;;*/

            /* 边框圆角  像素弧度大小 */
           /* border-radius: 5px;*/

            /* margin-left: 430px;
             margin-top: 130px; */
            /* 上 右  下 左*/
            /*margin:130px 0 0  430px;*/
            /*background-color: #87CEFA;*/


        }
        /* 给id="userDiv" */
        #userDiv{
            margin: 40px 0 0 50px;
        }
        /* 给id="pwdDiv"控制样式 */
        #pwdDiv{
            margin: 20px 0 0 50px;
        }

        /* 给id="btnDiv"控制样式 */
        #btnDiv{
            margin: 20px 0 0 150px;
        }
        #spDiv{
            margin: 20px 0 0 50px;
        }
        #pimgeDiv{
            margin: 20px 0 0 50px;
        }
        #pdateDiv{
            margin: 20px 0 0 50px;
        }
        #pdescDiv{
            margin: 20px 0 0 50px;
        }
        #cidDiv{
            margin: 20px 0 0 50px;
        }




    </style>

    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet" />
    <%--导入jquery的js--%>
    <script src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>
    <%--导入boostrap的js文件--%>
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
</head>
<body>

        <div id="mainDiv">
            <form class="form-horizontal" enctype="multipart/form-data" action="${pageContext.request.contextPath}/product?methodName=addProduct" method="post">
                <div id="userDiv"  class="form-group">
                    <label for="productname" class="col-md-3 control-label">商品名称</label>
                    <div class="col-md-9">
                        <input type="text" name="pname" class="form-control" id="productname" placeholder="请输入用户名">
                    </div>
                </div>
                <div id="pwdDiv" class="form-group">
                    <label for="productmarketprice" class="col-md-3 control-label">市场价格</label>
                    <div class="col-md-9">
                        <input type="text" name="productmarketprice" class="form-control" id="productmarketprice" placeholder="请输入市场价格">
                    </div>
                </div>
                <div id="spDiv" class="form-group">
                    <label for="productshopprice" class="col-md-3 control-label">商城价格</label>
                    <div class="col-md-9">
                        <input type="text" name="shop_price" class="form-control" id="productshopprice" placeholder="请输入商城价格">
                    </div>
                </div>
                <div id="pimgeDiv" class="form-group">
                    <label for="pimage" class="col-md-3 control-label">商城价格</label>
                    <div class="col-md-9">
                        <input type="file" name="pimage" class="form-control" id="pimage" />
                    </div>
                </div>
                <div id="pdateDiv" class="form-group">
                    <label for="pimage" class="col-md-3 control-label">上架日期</label>
                    <div class="col-md-9">
                        <input type="date" name="pdate" class="form-control" id="pdate" />
                    </div>
                </div>
                <div id="pdescDiv" class="form-group">
                    <label for="pdesc" class="col-md-3 control-label">商品描述</label>
                    <div class="col-md-9">
                        <input type="text" name="pdesc" class="form-control" id="pdesc" />
                    </div>
                </div>

                <div id="cidDiv" class="form-group">
                    <label for="pdesc" class="col-md-3 control-label">分类Id</label>
                    <div class="col-md-9">
                        <input type="text" value="1" name="cid" class="form-control" id="cid" />
                    </div>
                </div>



                <div id="btnDiv" class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="submit" class="btn btn-success" value="保存" />
                    </div>
                </div>

            </form>
        </div>
</body>
</html>
